package zhishu.iceyyy.com.kd_khd.er_fragment;

import android.annotation.SuppressLint;
import android.app.Activity;
import android.content.Context;
import android.content.res.Resources;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import android.widget.LinearLayout;

import com.bumptech.glide.Glide;
import com.youth.banner.Banner;
import com.youth.banner.BannerConfig;
import com.youth.banner.Transformer;
import com.youth.banner.loader.ImageLoader;

import java.util.ArrayList;
import java.util.Collections;
import java.util.List;

import zhishu.iceyyy.com.kd_khd.R;
import zhishu.iceyyy.com.kd_khd.adapter.DemoAdapter;


/**
 * Created by HongJay on 2016/9/13.
 */
public class Recycle_Listadapter extends RecyclerView.Adapter<RecyclerView.ViewHolder> {




    @Override
    public RecyclerView.ViewHolder onCreateViewHolder(ViewGroup parent, int viewType) {
        //        头部

        View view = LayoutInflater.from(parent.getContext()).inflate(R.layout.tab_item_1_cx, parent, false);
        OneViewHolder viewHolder = new OneViewHolder(view);
        return viewHolder;


    }

    List<String> ccList;

    public void adddata(List<String> ccList) {
        this.ccList = ccList;

    }


    @SuppressLint("WrongConstant")
    @Override
    public void onBindViewHolder(final RecyclerView.ViewHolder holder, int position) {
        //如果holder是EditViewHolder的实例
//        if (holder instanceof OneViewHolder) {
//
//            ((OneViewHolder) holder).banner
//        }


    }

//    @Override
//    public int getItemViewType(int position) {
//
//            return 0;
//
//    }

    @Override
    public int getItemCount() {
        return ccList.size();
    }

    public class OneViewHolder extends RecyclerView.ViewHolder {



        public OneViewHolder(View itemView) {
            super(itemView);


        }
    }




}
